/**
 * Created by hongye.liu on 14-11-6.
 */

define(['jquery','underscore','backbone','global','text!/android_asset/busAppWeb/module/busApp/busRemind/busRemind.html'],
    function($,_,Backbone,global,html){
        var busRemindView = Backbone.View.extend({
            el:'#busMain',
            template: _.template(html),
            initialize:function(data){
                var siteArray = []
                if(global.userSiteObject == null)
                {
                    siteArray = [{value:'',note:''}]
                }
                else
                {
                    siteArray = global.userSiteObject;
                }
                this.render(siteArray);
            },
            render:function(data){

                $('#busMain').html(this.template({data:data}));
                $('#busMain').trigger('create');
            }
        });

        return busRemindView;

})

